package com.spottydog.virtues;

import java.util.Date;

public class Utils {
	
	public static long toUnixtime(Date date) {
		return date.getTime()/1000L;
	}
	
	public static Date fromUnixtime(long unixtime) {
		return new Date(unixtime*1000);
	}
}
